﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace TestProject1.MainClasses
{
    public class Role
    {
        int id_role = 0;
        string name = "";
        bool addTickets = false;
        bool editOthersTickets = false;
        bool editUser = false;
        bool read = false;
        bool setStatus = false;
        bool Statistics = false;

        public void SetID(int id) { this.id_role = id; }
        public void Setname(string s) { this.name = s; }
        public void SetaddTickets(bool b) { this.addTickets = b; }
        public void SeteditOthersTickets(bool b) { this.editOthersTickets = b; }
        public void SeteditUser(bool b) { this.editUser = b; }
        public void Setread(bool b) { this.read = b; }
        public void SetsetStatus(bool b) { this.setStatus = b; }
        public void SetStatistics(bool b) { this.Statistics = b; }

        public int GetID() { return this.id_role; }
        public string Getname() { return this.name; }
        public bool GetaddTickets() { return this.addTickets; }
        public bool GeteditOthersTickets() { return this.editOthersTickets; }
        public bool GeteditUser() { return this.editUser; }
        public bool Getread() { return this.read; }
        public bool GetsetStatus() { return this.setStatus; }
        public bool GetStatistics() { return this.Statistics; }



        public Role add(int i, string str, bool b1, bool b2, bool b3, bool b4, bool b5, bool b6)
        {
            this.id_role = i;
            this.name = str;
            this.addTickets = b1;
            this.editOthersTickets = b2;
            this.editUser = b3;
            this.read = b4;
            this.setStatus = b5;
            this.Statistics = b6;
            return this;
        }

        public Role edit(int i, string str, bool b1, bool b2, bool b3, bool b4, bool b5, bool b6)
        {
            this.id_role = i;
            this.name = str;
            this.addTickets = b1;
            this.editOthersTickets = b2;
            this.editUser = b3;
            this.read = b4;
            this.setStatus = b5;
            this.Statistics = b6;
            return this;
        }
        void del() { }
    }
}